@import '2';


// 变量
$c : green;
$bgc : green;
$w : 1200px;
$b-d : 1px solid $c;


@mixin list {
    font-size: 12px;
    color: red;
    border: 1px solid #000;
    width: 200px;
    height: 200px;
}

@mixin fn($a , $b) {
    font-size: $a;
    color: red;
    border: 1px solid #000;
    width: $b;
    height: 200px;
}

.d {
    @include fn(14px, 300px);
}


.b {
    @include list;
}

.c {
    @include list;
    // 可以覆盖样式
    color: $c;
}


* {
    padding: 0;
    margin: 0;
}

li {
    list-style: none;

}

.a {
    width: 60px * 2;
}

.list {
    width: $w;
    margin: auto;
    display: flex;
    flex-wrap: wrap;



    li {
        width: 23%;
        margin: 1%;
        border: $b_d;
        box-sizing: border-box;

        a {
            text-decoration: none;
            display: block;

            img {
                width: 250px;
                height: 250px;
            }

            h3,
            p {
                color: $c;
            }
        }

        &:hover {
            transform: scale(1.4);
        }

        &:first-child {
            font-size: 30px;
        }
    }

}



.list2 {
    @extend .list;
}